package com.swu.cx.alwayslearning.myretrofit

import com.swu.cx.alwayslearning.AccountManager
import okhttp3.Call

interface MyWeatherApi {

    @POST("/v3/weather/now.json")
    fun postWeather(
        @Field("location") city: String,
        @Field("key") key: String = AccountManager.WEATHER_API_KEY
    ): Call

    @GET("/v3/weather/now.json")
    fun getWeather(
        @Query("location") city: String,
        @Query("key") key: String = AccountManager.WEATHER_API_KEY
    ): Call
}